﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ServiceResponse.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Defines the ServiceResponse type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.Silverlight.StreetCareAPI
{
    /// <summary>
    /// Defines the ServiceResponse type.
    /// </summary>
    public partial class ServiceResponse
    {
        /// <summary>
        /// Gets a value indicating whether this instance is fault.
        /// </summary>
        /// <value>
        ///   <c>true</c> if this instance is fault; otherwise, <c>false</c>.
        /// </value>
        public bool IsFault
        {
            get { return Fault != null && Fault.Code != 0; }
        }
    }
}
